package com.ngc.mall.core.enumeration;

import java.util.stream.Stream;

/**
 *
 * 签到状态
 * @author: chenxiaolin
 * @date 2023/9/12 10:20
**/
public enum IntegralStatus {
    UNSIGN(0,"未签"),
    SIGNED(1,"已签"),
    RETROACTIVE(2,"补签");

    private Integer value;

    IntegralStatus(int value,String description) {
        this.value=value;
    }

    public Integer getValue(){
        return this.value;
    }

    public static IntegralStatus toType(int value){
        return Stream.of(IntegralStatus.values()).filter(c->c.value==value).findAny().orElse(null);
    }
}
